/*
 * @Author: wb_wangjiudeng wb_wangjiudeng@tcl.com
 * @Date: 2025-05-30 18:26:08
 * @LastEditors: wb_wangjiudeng wb_wangjiudeng@tcl.com
 * @LastEditTime: 2025-05-30 18:39:04
 * @FilePath: \nsk-ui\src\api\department\index.js
 * @Description: 文件介绍
 * 
 * Copyright (c) 2025 by user.email, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询科室/社区列表
export function getList(params) {
  return request({
    url: '/nsk/communityInfo/list',
    method: 'get',
    params
  })
}

// 新增科室/社区
export function addData(data) {
  return request({
    url: '/nsk/communityInfo',
    method: 'post',
    data
  })
} 

// 修改科室/社区
export function updateData(data) {
  return request({
    url: '/nsk/communityInfo',
    method: 'put',
    data
  })
} 

// 删除科室/社区
export function deleteData(ids) {
  return request({
    url: `/nsk/communityInfo/${ids}`,
    method: 'delete'
  })
}

// 获取详细信息
export function getInfo(id) {
  return request({
    url: `/nsk/communityInfo/${id}`,
    method: 'get'
  })
}